<?php
use think\Route;

//首页路由
Route::any('/','index/Index/index');
Route::any('advantage','index/index/advantage');

//新闻路由
Route::any('news','index/News/index');
Route::any('newslist','index/NewsList/index');
Route::any('newsabc','index/NewsList/ajaxForCateNews');
Route::get('newscontent/:id','index/newsDetails/index');


//案例路由
Route::any('casedetails/:id','index/Successcase/details','',['id'=>'\d+']);
Route::any('index/Successcase/all','index/Successcase/all');
Route::any('index/Successcase/getall','index/Successcase/getAll');
Route::any('index/Successcase/getajax','index/Successcase/getAjax');
Route::any('successcase','index/Successcase/index');



//关于我们
Route::any('about','index/About/index');


//联系我们
Route::any('contact','index/Contact/index');

Route::any('ajaxliuyan','index/contact/ajaxliuyan');

//服务模块路由
Route::any('service','index/Service/index');
Route::any('serviceshow','index/ServiceShow/index');

Route::any('getAjaxPic','index/Service/getAjaxPic');

//套餐,解决方案
Route::any('setmeal','index/build_web/index');
Route::any('show/:id','index/SetMeal/index');

// Route::miss('index/Index/index');
// Route::get('/:name',function($name){
//     strtolower($name);
//     if($name != 'index' || 'admin'){
//         return redirect('/');
//     }
// });